#!/usr/bin/env python3

import collections

class Student:
    def __init__(self):
        self.num = 0

    def __iter__(self):
        return self

    def __next__(self):
        self.num += 1
        if self.num >= 10:
            raise StopIteration
        return self.num

def main():
    s = Student()

    print(isinstance(s, collections.Iterable))
    print(isinstance(s, collections.Iterator))
    #  print(isinstance("hello", collections.Iterable))

    print(next(s))

    #  for i in s:
        #  print(i)

if __name__ == "__main__":
    main()
